<?php
/**
 * Created by PhpStorm.
 * User: hebidu
 * Date: 15/11/27
 * Time: 12:16
 */

namespace Home\Controller;
use Common\Api\AccountApi;

/**
 * 用户二维码的识别,邀请注册
 * Class BanmaCodeController
 * @package Home\Controller
 */
class InviteRegisterController extends HomeController{

    public function index(){

        $invite_id = I('get.uid','','intval');
        if($invite_id > 0){
            $result = apiCall(AccountApi::GET_INFO,array($invite_id));
            if($result['status'] && is_array($result['info'])){
                $this->assign("userinfo",$result['info']);
            }
        }


        $this->boye_display();
    }

    public function info(){
        $uid = I('get.uid','');

        $this->boye_display();
    }


}